package com.c2c.controller.user;

import com.c2c.po.Complaint;
import com.c2c.service.ComplaintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Controller
public class ComplaintController {
    @Autowired
    private ComplaintService complaintService;

    //新增投诉信息
    @RequestMapping(value = "/save", method = RequestMethod.POST)
    public String newComplaint(Complaint complaint) {
        complaintService.insertComplaint(complaint);
        return "userBuy";
    }

}
